package com.denlaku.longan.core;

import lombok.Getter;

/**
 * @author tianx
 */

@Getter
public enum Terminal {
    /**
     * PC端
     */
    pc("1", "PC"),

    /**
     * 移动端
     */
    mobile("2", "Mobile");

    private final String code;

    private final String name;

    Terminal(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public boolean eq(String code) {
        return this.getCode().equals(code);
    }
}
